import QtQuick 2.0
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4

Button{
    id: button
    width: 70
    height: 30

    property string color1: "#efeff2"

    style:ButtonStyle{
        id:bs1

        background: Rectangle{
            id: rectangle
            color: color1
            implicitWidth: 100
            implicitHeight: 100
            radius: 20
            border.color: "#231c1c"
        }


        Label{
            color:"black"
            font.bold: true
            text:control.text
            anchors.verticalCenter: parent.verticalCenter
            anchors.horizontalCenter: parent.horizontalCenter
        }
    }



    MouseArea{
        anchors.fill : parent


        onPressed: {
            color1 = "blue"
        }



        onReleased: {
            color1 = "#ffffff"
        }
    }




}

